<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     
  
$id=isset($_GET["id"])?$_GET["id"]:"0";
if($id!="0"){
    $role=$T->db->query("SELECT * FROM sys_school where id=".$id)->fetch(PDO::FETCH_ASSOC);
    foreach($role as $k=>$v){
    	if($k=='sch_logo'&&$v!=''){
    		$T->Set($k,'/upload/school_logo/'.$v);
    	}else{
    	    $T->Set($k,$v);
    	}
    }
}
        

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 